package modelLayer;
/**
 * Class Copy defines a copy
 * @author group 6 - Stefan Patatu, Stan Cosmin Madalin, Monika Vyšniauskaitė, Larowski Michal, Njogu Alex, Cristian Moldovan
 */
public class Copy {
    public int serialNumber;
    public String purchaseDate;
    public int purchasePrice;
    public String status;
    
    /**
     * Create a new Copy object.
     * @param serialNumber The serial number of a copy.
     * @param purchasePrice The price of a copy.
     * @param purchaseDate The purchaseDate of a copy.
     * @param status The status of a copy.
     */
    public Copy(int serialNumber, int purchasePrice, String purchaseDate){
        this.serialNumber = serialNumber;
        this.purchasePrice = purchasePrice;
        this.purchaseDate = purchaseDate;
        this.status = "available";
    }
    
    /**
     * Get the serial number of a copy
     * @param serialNumber The serialNumber of a copy.
     */
    public int getSerialNumber(){
        return serialNumber;
    }
    public String getPurchaseDate() {
        return purchaseDate;
    }
    public int getPurchasePrice() {
        return purchasePrice;
    }
    public void makeBorrowed() {
        this.status = "borrowed";
    }
    public void makeAvailable() {
        this.status = "available";
    }
    public String getStatus() {
        return status;
    }
}
